<html>
    <body>
        <form action="">
            <input type="text" name="name" id="nameid" value=""><br>

            <input type="radio" name="sex" value="男" id="sexid"/>男
            <input type="radio" name="sex" value="女" id="sexid"/>女<br>

            <select id = "selectid">
                <option value ="博士" selected="selected">博士</option>
                <option value ="硕士">硕士</option>
                <option value="学士">学士</option>
                <option value="幼儿园" >幼儿园</option>
              </select>
            <input type="button" value="提交" onclick="aa()">
        </form>
        <script>
            let aa = ()=>{
                var nameid = document.getElementById('nameid').value        
                var namesex = document.getElementById('sexid').value
                var selectid = document.getElementById('selectid').value 
                alert(nameid)
                alert(namesex)
                alert(selectid)

            }
        </script>
    </body>
</html>